package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.WdyVcBuyOrder;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * vc购买订单 数据层
 * 
 * @author ruoyi
 * @date 2019-12-16
 */
public interface WdyVcBuyOrderMapper extends BaseMapper<WdyVcBuyOrder>
{
	/**
     * 查询vc购买订单信息
     * 
     * @param id vc购买订单ID
     * @return vc购买订单信息
     */
	public WdyVcBuyOrder selectWdyVcBuyOrderById(Long id);
	
	/**
     * 查询vc购买订单列表
     * 
     * @param wdyVcBuyOrder vc购买订单信息
     * @return vc购买订单集合
     */
	public List<WdyVcBuyOrder> selectWdyVcBuyOrderList(WdyVcBuyOrder wdyVcBuyOrder);
	
	/**
     * 新增vc购买订单
     * 
     * @param wdyVcBuyOrder vc购买订单信息
     * @return 结果
     */
	public int insertWdyVcBuyOrder(WdyVcBuyOrder wdyVcBuyOrder);
	
	/**
     * 修改vc购买订单
     * 
     * @param wdyVcBuyOrder vc购买订单信息
     * @return 结果
     */
	public int updateWdyVcBuyOrder(WdyVcBuyOrder wdyVcBuyOrder);
	
	/**
     * 删除vc购买订单
     * 
     * @param id vc购买订单ID
     * @return 结果
     */
	public int deleteWdyVcBuyOrderById(Long id);
	
	/**
     * 批量删除vc购买订单
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteWdyVcBuyOrderByIds(String[] ids);

    Map<String,BigDecimal> getSum(WdyVcBuyOrder wdyVcBuyOrder);
}